﻿using System.ComponentModel;

namespace TestRunner
{
    public class TestEntry : ModelBase
    {
        public string Assembly { get; set; }
        public string NameSpace { get; set; }
        public string ClassName { get; set; }
        public string FullName { get; set; }

        private bool canRunIndependently;
        public bool CanRunIndependently
        {
            get { return canRunIndependently; }
            set
            {
                if (value != canRunIndependently)
                {
                    canRunIndependently = value;
                    NotifyPropertyChanged<TestEntry>(p => p.CanRunIndependently);
                }
            }
        }
        private bool selected;

        public bool Selected
        {
            get { return selected; }
            set
            {
                if (selected != value)
                {
                    selected = value;
                    NotifyPropertyChanged<TestEntry>(p => p.Selected);
                }
            }
        }

        public override string ToString()
        {
            return NameSpace + "." + ClassName;
        }
    }
}